/* 管理页面头部 */
.management-header {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.management-header h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.filter-controls {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

/* 预约列表区域 */
.booking-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.list-header {
    margin-bottom: 20px;
}

.list-header h2 {
    font-size: 20px;
    color: #333;
}

.list-container {
    overflow-x: auto;
}

/* 预约表格 */
.booking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.booking-table th,
.booking-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.booking-table th {
    background-color: #fafafa;
    font-weight: 500;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.booking-table tbody tr {
    transition: background-color 0.3s;
}

.booking-table tbody tr:hover {
    background-color: #f5f5f5;
}

.booking-table tbody tr.upcoming:hover {
    background-color: #e6f7ff;
}

.booking-table tbody tr.ongoing:hover {
    background-color: #f6ffed;
}

.booking-table tbody tr.completed:hover {
    background-color: #f5f5f5;
}

.booking-table tbody tr.canceled:hover {
    background-color: #fff2e8;
}

.booking-table .btn {
    margin: 0 5px 0 0;
}

/* 预约时间线 */
.booking-timeline {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.booking-timeline h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

.timeline-container {
    position: relative;
}

.timeline-day {
    margin-bottom: 30px;
}

.timeline-day h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.timeline-items {
    position: relative;
    padding-left: 30px;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #f0f0f0;
}

/* 时间线项目 */
.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #1890ff;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.timeline-item.upcoming::before {
    background-color: #1890ff;
}

.timeline-item.ongoing::before {
    background-color: #52c41a;
}

.timeline-item.completed::before {
    background-color: #d9d9d9;
}

.timeline-item.canceled::before {
    background-color: #fa8c16;
}

.timeline-time {
    position: absolute;
    left: -100px;
    top: 0;
    width: 60px;
    text-align: right;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #1890ff;
    transition: all 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item.upcoming .timeline-content {
    border-left-color: #1890ff;
    background-color: #e6f7ff;
}

.timeline-item.ongoing .timeline-content {
    border-left-color: #52c41a;
    background-color: #f6ffed;
}

.timeline-item.completed .timeline-content {
    border-left-color: #d9d9d9;
    background-color: #f5f5f5;
}

.timeline-item.canceled .timeline-content {
    border-left-color: #fa8c16;
    background-color: #fff2e8;
}

.timeline-content h4 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.timeline-content p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.timeline-content .status-badge {
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .booking-list,
    .booking-timeline {
        padding: 15px;
    }

    .booking-table th,
    .booking-table td {
        padding: 10px;
        font-size: 12px;
    }

    .booking-table .btn {
        padding: 2px 8px;
        font-size: 11px;
        margin: 2px;
    }

    .timeline-items {
        padding-left: 25px;
    }

    .timeline-items::before {
        left: 6px;
        width: 1px;
    }

    .timeline-item::before {
        left: -25px;
        width: 12px;
        height: 12px;
    }

    .timeline-time {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        text-align: left;
        margin-bottom: 5px;
        background-color: rgba(0, 0, 0, 0.05);
        padding: 2px 8px;
        border-radius: 4px;
        display: inline-block;
    }

    .timeline-content {
        padding: 12px;
    }

    .timeline-content h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .management-header {
        padding: 15px;
    }

    .management-header h1 {
        font-size: 20px;
    }

    .booking-table {
        font-size: 11px;
    }

    .booking-table th,
    .booking-table td {
        padding: 8px 5px;
    }

    .timeline-day h3 {
        font-size: 14px;
    }

    .timeline-content h4 {
        font-size: 13px;
    }

    .timeline-content p {
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-list,
.booking-timeline {
    animation: fadeInUp 0.5s ease-out;
}

.timeline-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* 表格行悬停动画 */
.booking-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 状态标签增强 */
.status-badge {
    transition: all 0.3s;
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #666;
}

.empty-state p {
    margin-bottom: 20px;
}

/* 加载状态 */
.loading-state {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-state .loading {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.loading-state span {
    color: #666;
}